﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace BLL
{  
    public class NhanVienBLL
    {
        NhanVienDAL nhanviendal=new NhanVienDAL();
        public bool KiemTraDangNhap(string tendangnhap, string matkhau)
        {
            DataTable dt = new DataTable();
            dt = nhanviendal.LietKeNhanVien(tendangnhap,matkhau);
            if (dt.Rows.Count==0)   
                return false;
            else
                return true;
        }
    }
}
